package com.lxd.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lxd.entity.enums.DateTimePatternEnum;
import com.lxd.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author Dongdong
 * @注释
 */

public class RegistrationVO implements Serializable {
    /**
     *
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;
    private String applyUserName;

    /**
     * 活动id
     */
    private Long activityId;



    /**
     * 申请内容
     */
    private String applyContent;

    /**
     * 社团id
     */
    private Long clubId;


    /**
     * 申请状态 0：待处理 1：通过 2：拒绝
     */
    private Integer status;

    /**
     * 申请/创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;
    /**
     * 被申请的社团或者活动的名称
     */
    private String applyedName;

    public String getApplyedName() {
        return applyedName;
    }

    public void setApplyedName(String applyedName) {
        this.applyedName = applyedName;
    }

    public String getApplyUserName() {
        return applyUserName;
    }

    public void setApplyUserName(String applyUserName) {
        this.applyUserName = applyUserName;
    }



    public void setId(Long id){
        this.id = id;
    }

    public Long getId(){
        return this.id;
    }

    public void setUserId(Long userId){
        this.userId = userId;
    }

    public Long getUserId(){
        return this.userId;
    }

    public void setActivityId(Long activityId){
        this.activityId = activityId;
    }

    public Long getActivityId(){
        return this.activityId;
    }

    public void setApplyContent(String applyContent){
        this.applyContent = applyContent;
    }

    public String getApplyContent(){
        return this.applyContent;
    }

    public void setClubId(Long clubId){
        this.clubId = clubId;
    }

    public Long getClubId(){
        return this.clubId;
    }

    public void setStatus(Integer status){
        this.status = status;
    }

    public Integer getStatus(){
        return this.status;
    }

    public void setCreatedAt(Date createdAt){
        this.createdAt = createdAt;
    }

    public Date getCreatedAt(){
        return this.createdAt;
    }

    public void setUpdatedAt(Date updatedAt){
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt(){
        return this.updatedAt;
    }

    @Override
    public String toString (){
        return "id:"+(id == null ? "空" : id)+"，用户id:"+(userId == null ? "空" : userId)+"，活动id:"+(activityId == null ? "空" : activityId)+"，申请内容:"+(applyContent == null ? "空" : applyContent)+"，社团id:"+(clubId == null ? "空" : clubId)+"，申请状态 0：待处理 1：通过 2：拒绝:"+(status == null ? "空" : status)+"，申请/创建时间:"+(createdAt == null ? "空" : DateUtil.format(createdAt, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()))+"，更新时间:"+(updatedAt == null ? "空" : DateUtil.format(updatedAt, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()));
    }
}
